package com.practice;

public class demo08 {
    public static void main(String[] args) {
        //定义计数器，记录偶数个数
        int count = 0;
        //从50-120循环
        for (int i = 50; i < 121; i++) {
            if (i % 2 == 0) {
                System.out.print(i+" ");
                count++;
            }
            if (count % 3 == 0) {
                System.out.println();
            }
        }
    }
}
